package com.owner.biz.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.owner.biz.RepairsBiz;
import com.owner.dao.RepairsDao;
import com.owner.entity.Repairs;
@Service("repairsBiz")
@Scope("prototype")
public class RepairsBizImpl implements RepairsBiz{
	@Autowired
	private RepairsDao repairsDao;

	public int getCountRepairs() {
		// TODO Auto-generated method stub
		return repairsDao.getCountRepairs();
	}


	public Repairs getRepairsById(int id) {
		// TODO Auto-generated method stub
		return repairsDao.getRepairsById(id);
	}

	public int addRepairs(Repairs repairs) {
		// TODO Auto-generated method stub
		return repairsDao.addRepairs(repairs);
	}


	public List<Repairs> getAllRepairsByType(Map<String, Object> map){
		// TODO Auto-generated method stub
		return repairsDao.getAllRepairsByType(map);
	}


	public int getCountRepairsT() {
		// TODO Auto-generated method stub
		return repairsDao.getCountRepairsT();
	}


	public List<Repairs> countPage(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return repairsDao.countPage(map);
	}



	
}
